package javawdw.security.spi;

import java.util.List;

import javawdw.security.entity.Resource;
import javawdw.security.entity.Role;
import javawdw.security.entity.RoleResource;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

@XmlRootElement
@XmlSeeAlso( { RoleResource.class, Resource.class, Role.class })
public class IList {
	private List<?> rows;

	public IList() {
	}

	public IList(List<?> datas) {
		this.rows = datas;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	@XmlElement
	public int getTotal() {
		return this.rows.size();
	}
}